package Test;

/**
 * @author 连安利
 * @version 1.0
 * @date 2021/1/16 11:30
 */
public class Test01 {
    public static void main(String[] args) {
        int INF = Integer.MAX_VALUE;

        char[] Nodes = {'0', '1', '2', '3'};
        int matrix[][] = {
                /*A*//*B*//*C*//*D*/
                /*A*/ {  0,  1,  2,  1},
                /*B*/ { INF,  0, INF, INF},
                /*C*/ { INF,  3,  0,  1},
                /*D*/ { INF,  1,  1,  0},
        };

        int[] dist = new int[Nodes.length];

        Floyd floyd = new Floyd(Nodes, matrix);
        floyd.floyd();

    }
}
